package com.vlong.town.controller.client.town;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.vlong.town.controller.base.BaseController;
import com.vlong.town.entity.townInfo.TownInfo;
import com.vlong.town.service.townInfo.TownInfoService;

/**
 * 新农村控制器
 * @author 51088
 */
@Controller
@RequestMapping("/client/town")
public class TownClientController extends BaseController{
	
	@Autowired
	private TownInfoService townInfoService;//新农村业务接口
	
	
	@RequestMapping("/list")
	public String list(){
		 Long townId = 1L;
	     TownInfo townInfo = this.townInfoService.query(townId);
         request.setAttribute("townInfo", townInfo);
         //获取SESSION信息
   		String telphone = getTelphone();
   		request.setAttribute("telphone", telphone);
		return "client/town/list_town";
	}
	
	
	
	
	

}
